package ModelLayer;



import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

/**
 * The test class AddressBookTest.
 *
 * @author  (your name)
 * @version (a version number or a date)
 */
public class AddressBookTest
{
    /**
     * Default constructor for test class AddressBookTest
     */
    public AddressBookTest()
    {
    }

    /**
     * Sets up the test fixture.
     *
     * Called before every test case method.
     */
    @Before
    public void setUp()
    {
    }

    @Test
    public void testAddPerson()
    {
        AddressBook addressBook=new AddressBook();
        assertEquals(true, addressBook.addPerson(1,"Name","Address",9200,"City","Phone"));
    }
    
    @Test
    public void testRemovePerson()
    {
        AddressBook addressBook=new AddressBook();
        addressBook.addPerson(1,"Name","Address",9200,"City","Phone");
        addressBook.addPerson(2,"Nasde","Address",9200,"City","Phone");
        addressBook.addPerson(3,"Nasdem","Address",9200,"City","Phone");
        assertEquals(true, addressBook.removePerson(3));
    }
    
    @After
    public void tearDown()
    {
    }
}
